package com.sicheng.metadata.se.exp.first;

import java.util.Scanner;

/**
 * @author zsc
 * @version 1.0
 * @date 2021/9/9 21:01
 */
public class MultiplicationTables {
    public static void main(String[] args) {

        System.out.println("请输入99乘法表层数:");
        multiplicationTables(new Scanner(System.in).nextInt());
    }

    public static void multiplicationTables(int n) {
        if (n<=0)
            return;
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(i * j + " ");
            }
            System.out.println();

        }
    }
}
